package models

// PublishScheduleDevicePlaylist 投放计划播放清单
type PublishScheduleDevicePlaylist struct {
	ID           string `json:"id" gorm:"column:id;primaryKey;type:int;size:64;comment:主键"`
	RobotName    string `json:"robot_name" gorm:"index:idx_robotName;column:robot_name;type:varchar(25);not null;default:'';comment:设备名称"`
	TerminalType int    `json:"terminal_type" gorm:"column:terminal_type;type:tinyint(1);not null;default:1;comment:终端类型【1-97 2-98】"`
	ScheduleID   string `json:"schedule_id" gorm:"column:schedule_id;type:varchar(20);not null;default:'';comment:计划ID"`
	MaterialID   string `json:"material_id" gorm:"column:material_id;type:varchar(20);not null;default:'';comment:素材ID"`
	FilePath     string `json:"file_path" gorm:"column:file_path;type:text;not null;comment:文件路径"`
	FileMd5      string `json:"file_md5" gorm:"column:file_md5;type:varchar(32);not null;default:'';comment:文件md5"`
	CreatedAt    int64  `json:"created_at" gorm:"column:created_at;autoCreateTime;type:int;size:64;not null;default:0;comment:创建时间"`
}

// TableName 表名
func (PublishScheduleDevicePlaylist) TableName() string {
	return "publish_schedule_device_playlist"
}

// 模式自动注册
func init() {
	Models = append(Models, &PublishScheduleDevicePlaylist{})
}
